import axios from 'axios';
import { loginreq, req } from './axiosFun';
/**
 * 商品管理
 **/
// 商品管理-获取商品列表
export const shangpinList = (params) => { return req("post", "/api/shangpin/list/page", params) };

// 商品管理-保存
export const shangpinSave = (params) => { return req("post", "/api/shangpin/save", params) };
// 商品管理-编辑
export const shangpinEdit = (params) => { return req("post", "/api/shangpin/edit", params) };

// 商品管理-删除商品
export const shangpinDelete = (params) => { return axios.delete("/api/shangpin/del/" + params).then(res => res.data) };
// 商品管理-修改状态
export const shangpinStatus = (params) => { return req("post", "/api/shangpin/edit", params) };
// 商品管理-批量删除
export const shangpinBatchDel = (params) => { return req("post", "/api/shangpin/del/batch", params) };
